/*
 *  dna_misc.h -- provide dna-system misc API management.
 *
 *  ORIGINAL AUTHOR: Xu Chun (chun.xu@broadlink.com.cn)
 *
 *  Copyright (c) 2016 Broadlink Corporation
 */

#ifndef __DNA_MISC_H
#define __DNA_MISC_H

/*
*   This API looks more like a util routine, now only used for Broadlink product test case.
*   Developers call it don't need to consider current mode, WiFi chip will auto switch to sniffer mode.
*   But this API will blocking current context, so please don't call it on interrupt context !!!
*
*   @aplist: note the last entry must set to NULL, otherwise will cause panic
*   @channel: sniffer channel (CH1 - CH14), please must in scope
*   @timeout: sniffer timeout (ms), if set to 0, then forever blocking until match success
*
*   Result: match any one (aplist), then return match entry num (>=0),
*   otherwiss blocking until timeout (-1).
*/
int dna_match_ap_on_sniffer(char ** aplist, unsigned char channel, unsigned int timeout);

#endif

